<?php

namespace model;

class UserModel extends BaseModel
{
    public $table_name = 'user';

    static function getName($uid){
        return self::getInstance(1)->findValue(['id'=>$uid],'username')?:'--';
    }

}